package com.yf.esms.model.entries;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 99698
 */
@Data
@ApiModel(value = "文档数据-用户")
public class User {
    @ApiModelProperty(value = "用户id",required = true,example = "91661")
    @NotNull(message = "用户id不能为空！")
    private Integer userId;
    @ApiModelProperty(value = "用户名",required = true,example = "yjc")
    @NotEmpty(message = "用户名不能为空！")
    private String userName;
    @ApiModelProperty(value = "年龄",required = true,example = "25")
    @NotNull(message = "年龄不为空！")
    private Integer age;
    @ApiModelProperty(value = "手机号",required = true,example = "110")
    @NotEmpty(message = "手机号不为空！")
    private String mobile;
}
